package com.example.g_annotation;

import java.util.Arrays;

public class Test01 {
    public static void main(String[] args) {
        Class<BookShelf> bookShelfClass = BookShelf.class;
        if (bookShelfClass.isAnnotationPresent(Book.class)) {
            Book book = bookShelfClass.getAnnotation(Book.class);
            System.out.println(book.bookName());
            System.out.println(book.price());
            System.out.println(Arrays.toString(book.author()));
            System.out.println(book.count());
        }
    }
}
